import Vue from 'vue'
import VueRouter from 'vue-router'
import Book from "../views/Book.vue"
import Movie from "../views/Movie.vue"
import Game from "../views/Game.vue"
import Variety from "../views/Variety.vue"
import Sports from "../views/Sports.vue"

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: 'book'
    },
    {
        path: "/book",
        name: "Book",
        component: Book,
    },
    {
        path: "/movie",
        name: "Movie",
        component: Movie
    },
    {
        path: "/game",
        name: "Game",
        component: Game
    },
    {
        path: "/variety",
        name: "Variety",
        component: Variety
    },
    {
        path: "/sports",
        name: "Sports",
        component: Sports
    },
]

const router = new VueRouter({
    routes
})

export default router
